package com.tl.khadmin.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpSession;

import com.tl.khadmin.bean.HaoLiBeiGoods;
import org.springframework.web.multipart.MultipartFile;

import com.tl.khadmin.bean.Product;
import com.tl.khadmin.bean.ProductImg;
import com.tl.khadmin.bean.ProductType;
import com.tl.khadmin.bean.dto.ProductDetailDto;
import com.tl.khadmin.bean.dto.ProductListDto;
import com.tl.khadmin.bean.dto.ProductSelectListDto;
import com.tl.khadmin.page.Page;

public interface ProductIService {  

	Page<ProductListDto> showProductByPage(HttpSession session, Integer pageNum,Integer pageSize, Map<String,Object> params);

	Map<String, Object> saveProduct(HttpSession session, ProductDetailDto shopProduct);

	String saveProductImg(ProductImg productImg);

	int updateShelveState(Integer id, Integer shelveState);

	List<ProductSelectListDto> listProductSelect(HttpSession session, Map<String, Object> param);

	Map<String, Object> queryProductById(Integer id); 
	
	public Map<String, Object> saveProductPic(String basePath, MultipartFile[] file);
	
	String deleteProductById(Integer id);

	String updateProduct(HttpSession session, Product product);

	String audit(HttpSession session, Product product); 
	
	String SyncHaoLiBeiProduct(HaoLiBeiGoods haoLiBeiGood);

	String deleteProductByIds(String _ids);   
}
